
#include <stdio.h>
#include <unistd.h>
#include <linux/getprocinfo.h>
#include "print_task.h"


int main() {


  printf("\nThis program will test the results for pid, ppid");
  printf("\nand gid by calling the original system calls, and");
  printf("\nthen calling our system call and printing the result.\n");

  printf("\n My Pid is:  %ld ", (long)getpid() );
  printf("\n My Gid is:  %ld ", (long)getgid() );
  printf("\nMy PPid is:  %ld ", (long)getppid());
 
  printf("\nHere is my task_info_struct information: ");
  struct proc_info_struct s;
  getprocinfo( 0, &s );

  print_task( &s );
   

  printf("\nExiting.\n");
  
  return 0;

}
